<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@include file="../header.jsp"%>
<!-- start content-outer ........................................................................................................................START -->
<div id="content-outer">
    <!-- start content -->
    <div id="content">

        <!--  start page-heading -->
        <div id="page-heading">
            <h1>Detail Informasi Pengajuan Beasiswa</h1>
        </div>
        <!-- end page-heading -->

        <!-- start search -->
        <table border="0" width="100%" cellpadding="0" cellspacing="0" id="content-table">
            <tr>
                <th rowspan="3" class="sized"><img src="../images/shared/side_shadowleft.jpg" width="20" height="300" alt="" /></th>
                <th class="topleft"></th>
                <td id="tbl-border-top">&nbsp;</td>
                <th class="topright"></th>
                <th rowspan="3" class="sized"><img src="../images/shared/side_shadowright.jpg" width="20" height="300" alt="" /></th>
            </tr>
            <tr>
                <td id="tbl-border-left"></td>
                <td>
                    <!--  start content-table-inner ...................................................................... START -->
                    <div id="content-table-inner">

                        <!--  start table-content  -->

                        <!-- start pencarian -->
                        <div id="table-content">
                            <table border="0" width="100%" cellpadding="0" cellspacing="0" id="id-form">
                                <tr>
                                    <th width="38" align="left" valign="middle">Nrp</th>
                                    <td width="34" align="center" valign="middle">:</td>
                                    <td width="940">${pengajuanbeasiswa.user.idUser}</td>
                                </tr>
                                <tr>
                                    <th align="left" valign="middle">Nama Mahasiswa </th>
                                    <td align="center" valign="middle">:</td>
                                    <td>${pengajuanbeasiswa.user.namaUser}</td>
                                </tr>
                                <tr>
                                    <th width="38" align="left" valign="middle">Semester</th>
                                    <td width="34" align="center" valign="middle">:</td>
                                    <td width="940">${pengajuanbeasiswa.mahasiswa.smtMhs}</td>
                                </tr>
                                <tr>
                                    <th width="38" align="left" valign="middle">IPK</th>
                                    <td width="34" align="center" valign="middle">:</td>
                                    <td width="940">${pengajuanbeasiswa.mahasiswa.nilai}</td>
                                </tr>
                                <tr>
                                    <th width="38" align="left" valign="middle">Nama Ayah</th>
                                    <td width="34" align="center" valign="middle">:</td>
                                    <td width="940">${pengajuanbeasiswa.namaAyah}</td>
                                </tr>
                                <tr>
                                    <th width="38" align="left" valign="middle">Pekerjaan Ayah</th>
                                    <td width="34" align="center" valign="middle">:</td>
                                    <td width="940">${pengajuanbeasiswa.pekerjaanAyah}</td>
                                </tr>
                                <tr>
                                    <th width="38" align="left" valign="middle">Nama Ibu</th>
                                    <td width="34" align="center" valign="middle">:</td>
                                    <td width="940">${pengajuanbeasiswa.namaIbu}</td>
                                </tr>
                                <tr>
                                    <th width="38" align="left" valign="middle">Pekerjaan Ibu</th>
                                    <td width="34" align="center" valign="middle">:</td>
                                    <td width="940">${pengajuanbeasiswa.pekerjaanIbu}</td>
                                </tr>
                                <tr>
                                    <th width="38" align="left" valign="middle">Pendapatan Orangtua</th>
                                    <td width="34" align="center" valign="middle">:</td>
                                    <td width="940">${pengajuanbeasiswa.gajiOrtu}</td>
                                </tr>
                                <tr>
                                    <th valign="top">Waktu Pengajuan Beasiswa</th>
                                    <td align="center" valign="middle">:</td>
                                    <td>${pengajuanbeasiswa.waktuPengajuan}</td>
                                </tr>
                                <tr>
                                    <th width="38" align="left" valign="middle">Biaya Rekening Listrik </th>
                                    <td width="34" align="center" valign="middle">:</td>
                                    <td width="940">${pengajuanbeasiswa.rekListrik}</td>
                                </tr>
                                <tr>
                                    <th width="38" align="left" valign="middle">Biaya Rekening PDAM</th>
                                    <td width="34" align="center" valign="middle">:</td>
                                    <td width="940">${pengajuanbeasiswa.rekPdam}</td>
                                </tr>
                                <tr>
                                    <th width="38" align="left" valign="middle">Lampiran KTP/KTM</th>
                                    <td width="34" align="center" valign="middle">:</td>
                                    <td width="940"><a href="downloadFile?namaFile=${pengajuanbeasiswa.uploadKtp}">${pengajuanbeasiswa.uploadKtp}</a></td>
                                </tr>
                                <tr>
                                    <th width="38" align="left" valign="middle">Lampiran Rek Listrik</th>
                                    <td width="34" align="center" valign="middle">:</td>
                                    <td width="940"><a href="downloadFile?namaFile=${pengajuanbeasiswa.uploadListrik}">${pengajuanbeasiswa.uploadListrik}</a></td>
                                </tr>
                                <tr>
                                    <th width="38" align="left" valign="middle">Lapiran Rek PDAM</th>
                                    <td width="34" align="center" valign="middle">:</td>
                                    <td width="940"><a href="downloadFile?namaFile=${pengajuanbeasiswa.uploadPdam}">${pengajuanbeasiswa.uploadPdam}</a></td>
                                </tr>
                                <tr>
                                    <th width="38" align="left" valign="middle">Trasnkrip IPK</th>
                                    <td width="34" align="center" valign="middle">:</td>
                                    <td width="940"><a href="downloadFile?namaFile=${pengajuanbeasiswa.uploadTranskrip}">${pengajuanbeasiswa.uploadTranskrip}</a></td>
                                </tr>
                                <tr>
                                    <th valign="top">Alasan Pengajuan Beasiswa</th>
                                    <td align="center" valign="middle">:</td>
                                    <td>${pengajuanbeasiswa.alasanPengajuan}</td>
                                </tr>
                                <tr>
                                    <th valign="top">Persyaratan Beasiswa</th>
                                    <td align="center" valign="middle">:</td>
                                    <td><a href="detailBeasiswa?idBeasiswa=${pengajuanbeasiswa.beasiswa.idBeasiswa}">detail persyaratan beasiswa</a></td>
                                </tr> 
                                    <%
                                        ArrayList listRole2 = new ArrayList();
                                        listRole2 = (ArrayList) session.getAttribute("role");
                                        int count2;
                                        String role2;
                                        for (count2 = 0; count2 < listRole2.size(); count2++) {
                                            role2 = (String) listRole2.get(count2);
                                            if (role2.equals("admin_tu")) {
                                    %>     
                                    
                                    <c:if test="${(pengajuanbeasiswa.statusPengajuan == '0')}">
                                <tr>
                                    <th valign="top">Pilihan Validasi</th>
                                    <td align="center" valign="middle">:</td>
                                    <td>
                                        &nbsp;&nbsp;|&nbsp;&nbsp;
                                    <a href="validasiPengajuanBeasiswa?idPengajuanBeasiswa=${pengajuanbeasiswa.idPengajuanBeasiswa}&&status=setuju">[Setujui]</a>
                                    &nbsp;&nbsp;|&nbsp;&nbsp;
                                    <a href="validasiPengajuanBeasiswa?idPengajuanBeasiswa=${pengajuanbeasiswa.idPengajuanBeasiswa}&&status=tolak"> [Tolak]</a>
                                    </td>  
                                </tr>  
                                </c:if>                                     
                                <%                                }
                                    }
                                %>
                                <tr></tr>
                            </table>
                        </div>
                        <!-- end pencarian -->

                        <!--  end content-table  -->

                        <!--  start actions-box ............................................... --><!-- end actions-box........... -->

                        <!--  start paging..................................................... -->

                        <!--  end paging................ -->

                        <div>

                            <p>

                                <a href="DaftarPendaftarBeasiswa">Kembali</a>

                            </p>

                        </div>

                    </div>
                    <!--  end content-table-inner ............................................END  -->
                </td>
                <td id="tbl-border-right"></td>
            </tr>
            <tr>
                <th class="sized bottomleft"></th>
                <td id="tbl-border-bottom">&nbsp;</td>
                <th class="sized bottomright"></th>
            </tr>
        </table>
        <div class="clear">&nbsp;</div>

    </div>
    <!--  end content -->
    <div class="clear">&nbsp;</div>
</div>
<!--  end content-outer........................................................END -->
<%@include file="../footer.jsp"%>